package com.lxk.map.result;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class GdAreaResult {
    private static final long serialVersionUID = 1L;

    @com.fasterxml.jackson.annotation.JsonProperty("status")
    private String status;
    @com.fasterxml.jackson.annotation.JsonProperty("info")
    private String info;
    @com.fasterxml.jackson.annotation.JsonProperty("infocode")
    private String infocode;

    @com.fasterxml.jackson.annotation.JsonProperty("suggestion")
    private List<GdAreaResult.GdAreaSuggestionResp> suggestion;

    @com.fasterxml.jackson.annotation.JsonProperty("districts")
    private List<GdAreaResult.GdAreaDistrictResp> districts;

    @NoArgsConstructor
    @Data
    public static class GdAreaDistrictResp {
        @com.fasterxml.jackson.annotation.JsonProperty("citycode")
        private String citycode;
        @com.fasterxml.jackson.annotation.JsonProperty("adcode")
        private String adcode;
        @com.fasterxml.jackson.annotation.JsonProperty("name")
        private String name;
        @com.fasterxml.jackson.annotation.JsonProperty("polyline")
        private String polyline;
        @com.fasterxml.jackson.annotation.JsonProperty("center")
        private String center;
        @com.fasterxml.jackson.annotation.JsonProperty("level")
        private String level;
        @com.fasterxml.jackson.annotation.JsonProperty("districts")
        private List<GdAreaResult.GdAreaDistrictResp> districts;
    }

    @NoArgsConstructor
    @Data
    public static class GdAreaSuggestionResp {
        @com.fasterxml.jackson.annotation.JsonProperty("keywords")
        private List<?> keywords;
        @com.fasterxml.jackson.annotation.JsonProperty("cities")
        private List<?> cities;
    }
}
